<template lang="html">
  <div class="vuex">
    vuex {{ $store.state.cont }}
    <button type="button" name="button" @click="increment">增加</button>
    <button type="button" name="button" @click="decrement">删减</button>
  </div>
</template>

<script>
import { mapActions } from 'vuex'
export default {
  name: 'vuex',
  data () {
    return {}
  },
  methods: mapActions([
    'increment',
    'decrement'
  ])
}
</script>

<style scoped>

</style>
